package ooday03;

public class Doctor extends Person {
    String title;
    Doctor(String name , int age ,String address, String title){
        super(name,age,address);
        this.title = title;
    }
    void eat(){
        System.out.println(name+"在医院吃饭");
    }
    void sleep(){
        System.out.println(title+name+"在"+address+"睡觉");
    }
    void cut(){
        System.out.println(title+name+"在"+address+"在做手术");
    }
}
